#include "Mcat/plane.h"
#include "stdio.h"
#include "timer.h"
#include "math.h"
#include "string.h"
#include "conio.h"
#include "system.h"

void command(){
	char _command[20];
	while(1){
		printf("COMMAND=>");
		gets(_command);
		if(!strcmp(_command,"reboot"))
		{
			reboot();
		}else if(!strcmp(_command,"plane")){
			plane_run();
		}
		else if(!strcmp(_command,"snake")){
			snakeRun();
		}
		else if(!strcmp(_command,"rom")){
			seeTheRom();
			//see the rom
		}
		else if(!strcmp(_command,"exist")){
			break;
		}else if(!strcmp(_command,"thread")){

		}else{
			printf("%s  is not the key words\n",_command);
			showHelp();
		}
	}
}

void showHelp(){
	printf("reboot    ---reboot the system!\n" );
	printf("plane     ---play the plane game!\n" );
	printf("snake     ---play the snake game!\n" );
	printf("rom       ---see the rom of the system!\n");
	printf("exist     ---exist the system!\n");
}

void seeTheRom()
{

}
